package netfone;

import netfone.Call;
import netfone.Parser;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.swing.SwingUtilities;


public class App {
	
	/** Constantes da Aplicacao */
	public static final int LOCAL_AREA_CODE_LENGTH = 2;

	/**
	 * @param args
	 */
	public static void main(String[] args) {


		List<Call> calls = new ArrayList();
		try {
			calls = Parser.simpleParse("fatura.csv");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		for(Call call: calls){
			System.out.println("Ligacao para::" + call.getNumber() + ", para a cidade de " + call.getDestination() + " custou R$ " + call.getCallCost());
		}
		


	}

}
